<!--
  Labels of the ribbon control can be set using the GetLabel method.
  
  There must be an entry in the Resources.resx with <ribbonControl.Id> + "Label".
-->
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
          onLoad="OnLoad" loadImage="LoadImage">

  <commands>
    <!-- Home Tab -->
    <command idMso="PictureInsertFromFile" onAction="OnDialogOpenEvent" />
    <command idMso="HyperlinkInsert" onAction="OnDialogOpenEvent" />
    <command idMso="BookmarkInsert" onAction="OnDialogOpenEvent" />
    <command idMso="OleObjectctInsert" onAction="OnDialogOpenEvent" />
    <command idMso="FilePrint" onAction="OnDialogOpenEvent" />

    <!-- Insert Tab -->
    <command idMso="PageBorderAndShadingDialog" onAction="OnDialogOpenEvent" />
    <command idMso="CaptionInsert" onAction="OnDialogOpenEvent" />
    <command idMso="IndexInsert" onAction="OnDialogOpenEvent" />
    <command idMso="TableOfAuthoritiesInsert" onAction="OnDialogOpenEvent" />
    <command idMso="SaveSelectionToBibliographyGallery" onAction="OnDialogOpenEvent" />
    <command idMso="SaveSelectionToTableOfContentsGallery" onAction="OnDialogOpenEvent" />

    <!-- Mailing Tab -->
    <command idMso="EnvelopesAndLabelsDialog" onAction="OnDialogOpenEvent" />
    <command idMso="LabelsDialog" onAction="OnDialogOpenEvent" />
    <command idMso="MailMergeCreateList" onAction="OnDialogOpenEvent" />
    <command idMso="MailMergeRecepientsUseExistingList" onAction="OnDialogOpenEvent" />
    <command idMso="MailMergeRecepientsUseOutlookContacts" onAction="OnDialogOpenEvent" />

    <!-- Review Tab -->
    <command idMso="ReviewCombineRevisions" onAction="OnDialogOpenEvent" />
    <command idMso="SetLanguage" onAction="OnDialogOpenEvent" />
    <command idMso="ReviewCompareTwoVersions" onAction="OnDialogOpenEvent" />

    <!-- View Tab -->
    <command idMso="PlayMacro" onAction="OnDialogOpenEvent" />
    <command idMso="MacroRecordOrStop" onAction="OnDialogOpenEvent" />
  </commands>

  <ribbon>
    <tabs>
      <tab id="tridentTab" getLabel="GetLabel" keytip="GPT">
        
        <group id="documentGroup" getLabel="GetLabel">
          <toggleButton id="btnDashboard"
				      size="large"
				      getLabel="GetLabel"
				      getScreentip="GetScreentip"
				      onAction="DashboardButtonOnAction"
				      getPressed="ToggleButtonGetPressed"
				      image="dashboard"
              getEnabled="IsAssociationsPresent"/>
          <toggleButton id="btnViewAssociation"
				      size="large"
				      getLabel="GetLabel"
				      getScreentip="GetScreentip"
				      onAction="ViewWorkflowAssociationsButtonOnAction"
				      getPressed="ToggleButtonGetPressed"
				      image="viewAssociations"
              getEnabled="IsAssociationsPresent"/>
          <toggleButton id="btnProtectDocument"
			        size="large"
			        getLabel="GetLabel"
			        getScreentip="GetScreenTip"
			        onAction="ProtectDocumentButtonOnAction"
			        image="protectDocument"
              getPressed="DocumentProtectedGetPressed"
              getEnabled="GetEnabled"/>
        </group>
        
        <group id="authoringGroup" getLabel="GetLabel">
          <toggleButton id="btnRunWorkflow"
              size="large"
              getLabel="GetLabel"
              getScreentip="GetScreenTip"
              onAction="RunWorkflowButtonOnAction"
              getPressed="ToggleButtonGetPressed"
              image="runWorkflow"
              getEnabled="IsConnectionPresent"/>
          <toggleButton id="btnAssociateWorkflow"
				      size="large"
				      getLabel="GetLabel"
			        getScreentip="GetScreenTip"
				      onAction="AssociateWorkflowButtonOnAction"
              getPressed="ToggleButtonGetPressed"
			        image="associateWorkflow"
              getEnabled="GetEnabled"/>
          <toggleButton id="btnInsertTridentLink"
		          size="large"
		          getLabel="GetLabel"
		          getScreentip="GetScreenTip"
		          onAction="InsertTridentLinkButtonOnAction"
              getPressed="ToggleButtonGetPressed"
		          image="insertTridentLink"
              getEnabled="GetEnabled"/>
          <toggleButton id="btnRerunWorkflow"
              size="large"
              getLabel="GetLabel"
              getScreentip="GetScreenTip"
              onAction="RerunWorkflowButtonOnAction"
              getPressed="ToggleButtonGetPressed"
              image="rerunWorkflow"
              getEnabled="IsConnectionAndAssociationsPresent"/>
        </group>
        <group id="connectionGroup" getLabel="GetLabel">
          <toggleButton id="btnViewConnections"
				      size="large"
				      getLabel="GetLabel"
				      getScreentip="GetScreentip"
				      onAction="ViewConnectionsButtonOnAction"
				      getPressed="ToggleButtonGetPressed"
				      image="connections"
              getEnabled="GetEnabled"/>
          <separator id="connectionSeparator"/>
          <dropDown	id="dropdownConnections"
			        getLabel="GetLabel"
			        getScreentip="GetScreenTip"
			        onAction="ConnectionsDropDownOnAction"
			        getItemCount="GetConnectionsItemCount"
			        getItemLabel="GetconnectionsDropDownLabel"
			        getSelectedItemIndex="GetConnectionsSelectedIndex"
					    getEnabled="ComboBoxGetEnabled"/>
          <button id="btnCreateConnection"
					    size="normal"
				    	getLabel="GetLabel"
				    	getScreentip="GetScreenTip"
					    onAction="NewConnectionButtonOnAction"
					    image="newConnection"
					    getEnabled="GetEnabled"/>
        </group>

      </tab>
    </tabs>
  </ribbon>

</customUI>
